// pages/history/history.js
let {GetHistory}=require("../../api/api");
Page({

  /**
   * 页面的初始数据
   */
  data: {
    RecordData:[]
  },

  /**==
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    let CustomerID=wx.getStorageSync('CustomerID');
    GetHistory(CustomerID,(e)=>{
      wx.setStorageSync('RecordData',e.data);
      this.setData({
        RecordData:e.data
      })
    })

  },

})